<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>图书管理员管理系统</title>
    <meta name="description" content="图书管理员管理系统">
    <meta name="keywords" content="图书管理员管理系统">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <style type="text/css">
    .el-main{
        position: absolute;
        top: 70px;
        bottom: 0px;
        left: 200px;
        right: 10px;
        padding: 0;
    }
    </style>
</head>
<body class="hold-transition skin-purple sidebar-mini">
    <div id="app">
        <el-container>
            <el-header  class="main-header" style="height:70px;">
                <nav class="navbar navbar-static-top" :class=''>
                    <!-- Logo -->
                        <span class="logo-lg" style="padding-left: 20px"><img src="../img/logo3.png"></span>
                    <div class="right-menu">
                        <el-dropdown class="avatar-container right-menu-item" trigger="click">
                            <div class="avatar-wrapper">
                                <img src="../img/user8-128x128.jpg" class="user-avatar">
                                <span v-html="User_name"></span>
                            </div>
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item divided>
                                    <span style="display:block;" @click="tuichu()">退出</span>

                                </el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                </nav>
            </el-header>
            <el-container>

                <el-aside width="240px">
                    <el-menu>
                        <el-menu-item v-for="menu in menuList" :index="menu.path" style="padding: 0px">
                                <el-menu-item :index="menu.path" >
                                    <a :href="menu.linkUrl" target="right" style="display: inline-block;width: 180px">{{menu.title}}</a>
                                </el-menu-item>
                        </el-menu-item>
                    </el-menu>
                </el-aside>
                <el-container>
                    <iframe name="right" class="el-main" src="home.html" width="100%" height="867px" frameborder="0"></iframe>
                </el-container>
            </el-container>
        </el-container>
    </div>
</body>
<!-- 引入组件库 -->
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data:{
            User_name : window.location.href.split("=")[1],
            dialogFormVisible4Edit : false,
            menuList:[
                {
                    "path": "1",
                    "title": "首页",
                    "linkUrl": "home.html"
                },
                {
                    "path": "2",
                    "title": "图书查询",
                    "linkUrl": "checkitem.html"
                },
                {
                    "path": "3",
                    "title": "借阅查询",
                    "linkUrl": "borrow.html"
                },
                {
                    "path": "4",
                    "title": "读者管理",
                    "linkUrl": "user.html"
                },
                {
                    "path": "5",
                    "title": "借阅历史",
                    "linkUrl": "book_history.html"
                },
                {
                    "path": "6",
                    "title": "个人信息",
                    "linkUrl": "personal.html"
                },
                {
                    "path": "7",
                    "title": "图书借阅",
                    "linkUrl": "book_borrow.html"
                },
                {
                    "path": "8",
                    "title": "图书归还",
                    "linkUrl": "book_return.html"
                }

            ]
        },
        created(){
            this.menuList[5].linkUrl = "personal.html?name="+this.User_name;
        },
        methods:{
            tuichu(){
                location.href="../login.html";
            }
        }
    });

    $(function() {
            var wd = 200;
            $(".el-main").css('width', $('body').width() - wd + 'px');
    });
</script>
</html>
